﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EE5 RID: 3813
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueGambleMazeInfo : IMessage<RogueGambleMazeInfo>, IMessage, IEquatable<RogueGambleMazeInfo>, IDeepCloneable<RogueGambleMazeInfo>, IBufferMessage
	{
		// Token: 0x1700306B RID: 12395
		// (get) Token: 0x0600AAF7 RID: 43767 RVA: 0x001CE474 File Offset: 0x001CC674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueGambleMazeInfo> Parser
		{
			get
			{
				return RogueGambleMazeInfo._parser;
			}
		}

		// Token: 0x1700306C RID: 12396
		// (get) Token: 0x0600AAF8 RID: 43768 RVA: 0x001CE47B File Offset: 0x001CC67B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueGambleMazeInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700306D RID: 12397
		// (get) Token: 0x0600AAF9 RID: 43769 RVA: 0x001CE48D File Offset: 0x001CC68D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueGambleMazeInfo.Descriptor;
			}
		}

		// Token: 0x0600AAFA RID: 43770 RVA: 0x001CE494 File Offset: 0x001CC694
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleMazeInfo()
		{
		}

		// Token: 0x0600AAFB RID: 43771 RVA: 0x001CE49C File Offset: 0x001CC69C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleMazeInfo(RogueGambleMazeInfo other) : this()
		{
			this.mazeEnable_ = other.mazeEnable_;
			this.mazeId_ = other.mazeId_;
			RogueGambleMazeInfo.EPKNJMOEIPNOneofCase epknjmoeipncase = other.EPKNJMOEIPNCase;
			if (epknjmoeipncase != RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO)
			{
				if (epknjmoeipncase == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH)
				{
					this.CBOHBCLNIPH = other.CBOHBCLNIPH.Clone();
				}
			}
			else
			{
				this.FAKBOJBDKKO = other.FAKBOJBDKKO.Clone();
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AAFC RID: 43772 RVA: 0x001CE50E File Offset: 0x001CC70E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleMazeInfo Clone()
		{
			return new RogueGambleMazeInfo(this);
		}

		// Token: 0x1700306E RID: 12398
		// (get) Token: 0x0600AAFD RID: 43773 RVA: 0x001CE516 File Offset: 0x001CC716
		// (set) Token: 0x0600AAFE RID: 43774 RVA: 0x001CE51E File Offset: 0x001CC71E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool MazeEnable
		{
			get
			{
				return this.mazeEnable_;
			}
			set
			{
				this.mazeEnable_ = value;
			}
		}

		// Token: 0x1700306F RID: 12399
		// (get) Token: 0x0600AAFF RID: 43775 RVA: 0x001CE527 File Offset: 0x001CC727
		// (set) Token: 0x0600AB00 RID: 43776 RVA: 0x001CE52F File Offset: 0x001CC72F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MazeId
		{
			get
			{
				return this.mazeId_;
			}
			set
			{
				this.mazeId_ = value;
			}
		}

		// Token: 0x17003070 RID: 12400
		// (get) Token: 0x0600AB01 RID: 43777 RVA: 0x001CE538 File Offset: 0x001CC738
		// (set) Token: 0x0600AB02 RID: 43778 RVA: 0x001CE550 File Offset: 0x001CC750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MBACCCIEGBN FAKBOJBDKKO
		{
			get
			{
				if (this.ePKNJMOEIPNCase_ != RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO)
				{
					return null;
				}
				return (MBACCCIEGBN)this.ePKNJMOEIPN_;
			}
			set
			{
				this.ePKNJMOEIPN_ = value;
				this.ePKNJMOEIPNCase_ = ((value == null) ? RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.None : RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO);
			}
		}

		// Token: 0x17003071 RID: 12401
		// (get) Token: 0x0600AB03 RID: 43779 RVA: 0x001CE566 File Offset: 0x001CC766
		// (set) Token: 0x0600AB04 RID: 43780 RVA: 0x001CE57F File Offset: 0x001CC77F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public JFDLAOPNLLA CBOHBCLNIPH
		{
			get
			{
				if (this.ePKNJMOEIPNCase_ != RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH)
				{
					return null;
				}
				return (JFDLAOPNLLA)this.ePKNJMOEIPN_;
			}
			set
			{
				this.ePKNJMOEIPN_ = value;
				this.ePKNJMOEIPNCase_ = ((value == null) ? RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.None : RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH);
			}
		}

		// Token: 0x17003072 RID: 12402
		// (get) Token: 0x0600AB05 RID: 43781 RVA: 0x001CE596 File Offset: 0x001CC796
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleMazeInfo.EPKNJMOEIPNOneofCase EPKNJMOEIPNCase
		{
			get
			{
				return this.ePKNJMOEIPNCase_;
			}
		}

		// Token: 0x0600AB06 RID: 43782 RVA: 0x001CE59E File Offset: 0x001CC79E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearEPKNJMOEIPN()
		{
			this.ePKNJMOEIPNCase_ = RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.None;
			this.ePKNJMOEIPN_ = null;
		}

		// Token: 0x0600AB07 RID: 43783 RVA: 0x001CE5AE File Offset: 0x001CC7AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueGambleMazeInfo);
		}

		// Token: 0x0600AB08 RID: 43784 RVA: 0x001CE5BC File Offset: 0x001CC7BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueGambleMazeInfo other)
		{
			return other != null && (other == this || (this.MazeEnable == other.MazeEnable && this.MazeId == other.MazeId && object.Equals(this.FAKBOJBDKKO, other.FAKBOJBDKKO) && object.Equals(this.CBOHBCLNIPH, other.CBOHBCLNIPH) && this.EPKNJMOEIPNCase == other.EPKNJMOEIPNCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AB09 RID: 43785 RVA: 0x001CE640 File Offset: 0x001CC840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MazeEnable)
			{
				num ^= this.MazeEnable.GetHashCode();
			}
			if (this.MazeId != 0U)
			{
				num ^= this.MazeId.GetHashCode();
			}
			if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO)
			{
				num ^= this.FAKBOJBDKKO.GetHashCode();
			}
			if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH)
			{
				num ^= this.CBOHBCLNIPH.GetHashCode();
			}
			num ^= (int)this.ePKNJMOEIPNCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AB0A RID: 43786 RVA: 0x001CE6D0 File Offset: 0x001CC8D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AB0B RID: 43787 RVA: 0x001CE6D8 File Offset: 0x001CC8D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AB0C RID: 43788 RVA: 0x001CE6E4 File Offset: 0x001CC8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.FAKBOJBDKKO);
			}
			if (this.MazeEnable)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.MazeEnable);
			}
			if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.CBOHBCLNIPH);
			}
			if (this.MazeId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.MazeId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AB0D RID: 43789 RVA: 0x001CE778 File Offset: 0x001CC978
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MazeEnable)
			{
				num += 2;
			}
			if (this.MazeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MazeId);
			}
			if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FAKBOJBDKKO);
			}
			if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CBOHBCLNIPH);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AB0E RID: 43790 RVA: 0x001CE7F8 File Offset: 0x001CC9F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueGambleMazeInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MazeEnable)
			{
				this.MazeEnable = other.MazeEnable;
			}
			if (other.MazeId != 0U)
			{
				this.MazeId = other.MazeId;
			}
			RogueGambleMazeInfo.EPKNJMOEIPNOneofCase epknjmoeipncase = other.EPKNJMOEIPNCase;
			if (epknjmoeipncase != RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO)
			{
				if (epknjmoeipncase == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH)
				{
					if (this.CBOHBCLNIPH == null)
					{
						this.CBOHBCLNIPH = new JFDLAOPNLLA();
					}
					this.CBOHBCLNIPH.MergeFrom(other.CBOHBCLNIPH);
				}
			}
			else
			{
				if (this.FAKBOJBDKKO == null)
				{
					this.FAKBOJBDKKO = new MBACCCIEGBN();
				}
				this.FAKBOJBDKKO.MergeFrom(other.FAKBOJBDKKO);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AB0F RID: 43791 RVA: 0x001CE8A4 File Offset: 0x001CCAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AB10 RID: 43792 RVA: 0x001CE8B0 File Offset: 0x001CCAB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 34U)
					{
						MBACCCIEGBN mbaccciegbn = new MBACCCIEGBN();
						if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.FAKBOJBDKKO)
						{
							mbaccciegbn.MergeFrom(this.FAKBOJBDKKO);
						}
						input.ReadMessage(mbaccciegbn);
						this.FAKBOJBDKKO = mbaccciegbn;
						continue;
					}
					if (num == 80U)
					{
						this.MazeEnable = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 90U)
					{
						JFDLAOPNLLA jfdlaopnlla = new JFDLAOPNLLA();
						if (this.ePKNJMOEIPNCase_ == RogueGambleMazeInfo.EPKNJMOEIPNOneofCase.CBOHBCLNIPH)
						{
							jfdlaopnlla.MergeFrom(this.CBOHBCLNIPH);
						}
						input.ReadMessage(jfdlaopnlla);
						this.CBOHBCLNIPH = jfdlaopnlla;
						continue;
					}
					if (num == 112U)
					{
						this.MazeId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004577 RID: 17783
		private static readonly MessageParser<RogueGambleMazeInfo> _parser = new MessageParser<RogueGambleMazeInfo>(() => new RogueGambleMazeInfo());

		// Token: 0x04004578 RID: 17784
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004579 RID: 17785
		public const int MazeEnableFieldNumber = 10;

		// Token: 0x0400457A RID: 17786
		private bool mazeEnable_;

		// Token: 0x0400457B RID: 17787
		public const int MazeIdFieldNumber = 14;

		// Token: 0x0400457C RID: 17788
		private uint mazeId_;

		// Token: 0x0400457D RID: 17789
		public const int FAKBOJBDKKOFieldNumber = 4;

		// Token: 0x0400457E RID: 17790
		public const int CBOHBCLNIPHFieldNumber = 11;

		// Token: 0x0400457F RID: 17791
		private object ePKNJMOEIPN_;

		// Token: 0x04004580 RID: 17792
		private RogueGambleMazeInfo.EPKNJMOEIPNOneofCase ePKNJMOEIPNCase_;

		// Token: 0x02001C52 RID: 7250
		public enum EPKNJMOEIPNOneofCase
		{
			// Token: 0x040067F1 RID: 26609
			None,
			// Token: 0x040067F2 RID: 26610
			FAKBOJBDKKO = 4,
			// Token: 0x040067F3 RID: 26611
			CBOHBCLNIPH = 11
		}
	}
}
